
<!DOCTYPE html>
<html>
    <head>
        <title>Game</title>
        <link rel="stylesheet" href="gameStyle.css" type="text/css" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/javascript" src="lib/jquery-latest.js"></script>
        <script type="text/javascript" src="lib/ivank.js"></script>

    </head>
    <body onload="mainStart()">
        <h2 id="title">Matfyz game </h1>
        <iframe src="levels/levelCircuit/levelCircuit.html" id="level" scrolling="no"></iframe>
        <br />
        <input type="submit" value="prev" name="Previous" onclick="prevLevel()  "/>
        <input type="submit" value="next" name="Next" onclick="nextLevel()" />
        <script type="text/javascript">
            document.currentLevel = 0;  
        </script>
        <!--
        <script type="text/javascript"> 
            
            var currentLevel = 0;
            var levelNames = ["levelCircuit","levelElements","levelFunctions"
                ,"levelLogic","levelOptic","levelPi","levelPythagoras"
                ,"levelSort", "levelTurtle"];
            var jokeLevel = "levelJokes";
            
            function mainStart(){
                showLevel(0);
                Level.clickSkip = skip;
            }
            
            function skip(e){
                alert("moj skip");
                nextLevel();
            }
            
            function showLevel(i){
                var name = levelNames[i];
                var src = "levels/" + name + "/" + name + ".html";
                $("#level").attr("src", src);
            }
            
            function nextLevel(){
                if(currentLevel < levelNames.length - 1){
                    currentLevel++;
                    //alert(currentLevel);
                    showLevel(currentLevel);
                }
            }
            
            function prevLevel(){
                if(currentLevel > 0){
                    currentLevel--;
                    showLevel(currentLevel);
                }
            }
        </script>
        -->
        <script type="text/javascript" src="gameManager.js"> </script>
        <script type="text/javascript" src="levels/level.js"></script>
        
</body>
</html>
